home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Demos / AppMaker 2.0b3 / Demo AppMaker 1.5 / Demo AppMaker™ / Demo AppMaker™.rsrc / TmCM_801_MakeFile < prev    next >
Encoding:
Makefile  |  1992-04-08  |  4.1 KB  |  126 lines

  1. #    File:       %AppFilename%.MAMake
  2. #   Target:     %AppFilename% 
  3. #    Created %date% %time% by AppMaker
  4.  
  5. #    MABuild creates a .make file which
  6. #        compiles source files as needed
  7. #        runs Rez to create .rsrc files from .r files of the same name
  8. #        links the object files
  9. #        runs Rez to create resources and to copy the linked CODE
  10. #            its output is a temporary file
  11. #        runs PostRez to convert cmnu resources into MENU/mntb resources
  12. #            PostRez also sets the applications type and creator
  13. #                from its BNDL resource
  14. #        moves the built application from the temporary folder
  15. #            to the specified output folder.
  16. #        optionally, runs the built application
  17.  
  18. #    MABuild uses this file, and the file "Build Rules and Dependencies",
  19. #        and many MPW variables set by {MacApp}Startup as input.
  20.  
  21.  
  22. #---------------------------------------------------------------------------------------------------
  23. #    List here the Application's Name and Creator Type
  24.  
  25. AppName = %AppFilename% 
  26. Creator = 'XXXX'
  27.  
  28.  
  29. #---------------------------------------------------------------------------------------------------
  30. #    List here the MacApp building blocks that your application uses
  31. #    if you want to be dependent on less than the full set.
  32.  
  33. BuildingBlockIntf =  ∂
  34.         "{MACInterfaces}UPrinting.cp" ∂
  35.         "{MACInterfaces}UTEView.cp" ∂
  36.         "{MACInterfaces}UGridView.cp" ∂
  37.         "{MACInterfaces}UDialog.cp"
  38.  
  39.  
  40. #---------------------------------------------------------------------------------------------------
  41. #    List any additional interfaces that your application is dependent on
  42.  
  43. OtherInterfaces =  ∂
  44.         "{SrcApp}U%appname%Doc.h" ∂
  45.         "{SrcApp}ResourceDefs.h"
  46.  
  47.  
  48. #---------------------------------------------------------------------------------------------------
  49. #    Express any additional dependencies for separate compilations.
  50. #    Include dependencies for the MacApp and Building block interfaces
  51. #    if you are dependent on them
  52.  
  53. # generate additional dependencies
  54.  
  55. "{ObjApp}M%AppName%.cp.o"%    %ƒ     "{SrcApp}M%AppName%.cp" ∂
  56.                                 "{SrcApp}U%AppName%.h" ∂
  57.                                  {CPlusLoad}
  58.  
  59. "{ObjApp}U%AppName%.cp.o"%    %ƒ    "{SrcApp}U%AppName%.cp" ∂
  60.                                 "{SrcApp}U%AppName%.h" ∂
  61.                                 "{SrcApp}U%AppName%Doc.h" ∂
  62.                                 %for each dialog gen dependency%
  63.     "{SrcApp}ResourceDefs.h" ∂
  64.                                 {CPlusLoad}
  65.  
  66. "{ObjApp}U%AppName%Doc.cp.o"    ƒ    "{SrcApp}U%AppName%Doc.cp" ∂
  67.                                 "{SrcApp}U%AppName%Doc.h" ∂
  68.                                 %for each window gen dependency%
  69.     "{SrcApp}ResourceDefs.h" ∂
  70.                                 {CPlusLoad}
  71. %for each window gen makeDepend%
  72.  
  73. %for each dialog gen makeDepend%
  74.  
  75. "{ObjApp}UAMLibraryM.cp.o"%    %ƒ    "{MACIncludes}UAMLibraryM.cp" ∂
  76.                                 "{MACIncludes}UAMLibraryM.h" ∂
  77.                                 {CPlusLoad}
  78.     {MAEcho} {EchoOptions} "Compiling:     UAMLibraryM.cp"
  79.     {MACPlus} ∂
  80.         {CPlusOptions} ∂
  81.         {OtherCPlusOptions} ∂
  82.         {CPlusLoadOptions} ∂
  83.         -i "{SrcApp}" ∂
  84.         -i "{MACIncludes}" ∂
  85.         -o "{ObjApp}UAMLibraryM.cp.o" ∂
  86.         "{MACIncludes}"UAMLibraryM.cp
  87.  
  88.  
  89. #---------------------------------------------------------------------------------------------------
  90. #    Name any other object files to link in
  91.  
  92. OtherLinkFiles =     ∂
  93.         "{ObjApp}UAMLibraryM.cp.o" ∂
  94.         %for each dialog gen linkFile%
  95.         %for each window gen linkFile%
  96.         "{ObjApp}U%appname%Doc.cp.o"
  97.  
  98.  
  99. #---------------------------------------------------------------------------------------------------
  100. #    Specify any -sn (segment alias) linker options that you want included.
  101.  
  102. OtherSegMappings = ∂
  103.         -sn XxxxInit=GInit
  104.  
  105.  
  106. #---------------------------------------------------------------------------------------------------
  107. #    List Rez files other than AppName.r that need to Rez'ed with the application
  108.  
  109. OtherRezFiles =             
  110.  
  111.  
  112. #---------------------------------------------------------------------------------------------------
  113. #    List resource files that a Rez file includes if you want to include
  114. #    more or less than the standard set
  115.  
  116. OtherRsrcFiles = ∂
  117.         "{SrcApp}%AppFilename%"
  118.  
  119.  
  120. #---------------------------------------------------------------------------------------------------
  121. #    "dummy up" MAPostRez to not run PostRez.  Since AppMaker already created
  122. #    MENU/mntb resources, running PostRez is unnecessary (and harmful because
  123. #    it deletes the existing mntb resource).
  124.  
  125. MAPostRez = SetFile -t APPL -c {Creator}
  126.